ul,
li {
  padding: 0;
  margin: 0;
}

.pt3 {
  padding-top: 3px;
}

.message {
  height: calc(100% - 10pc - 40px);
  padding: 10px 15px;
  overflow-y: scroll;
  scroll-behavior: smooth; // chrome

  li {
    margin-bottom: 15px;
  }
  .time {
    margin: 7px 0;
    text-align: center;
  } 
  .time > span {
    display: inline-block;
    padding: 0 18px;
    font-size: 9pt;
    color: #fff;
    border-radius: 2px;
    background-color: #dcdcdc;
  }
  .main {
      .video-msg {
      video {
        display: inline-block;
        max-width: 250px;
        border-radius: 4px;
        outline: none;
      }
    }  
    .name {
      font-size: 12px;
    }  
    .avatar {
      float: left;
      margin: 0 10px 0 0;
      border-radius: 3px;
    }
    .text {
      position: relative;
      padding: 0 10px;
      max-width: calc(100% - 80px);
      min-height: 30px;
      line-height: 2.5;
      font-size: 10pt;
      text-align: left;
      word-break: break-all;
      background-color: #fafafa;
      border-radius: 4px;

      display: inline-flex;
      align-items: center;

      /deep/ {
        .vemoji-image {
          width: 40px;
          height: 40px;
          padding: 2px;
          transition: all 0.3s;
        }
        .vemoji-image:hover {
          transform: scale(1.5);
        }
      }
    }

    .img-msg {
      .el-image {
        transition: all 0.5s;
      }
    }
  }

  .img:before,
  .video-msg:before,
  .text:before {
    content: ' ';
    position: absolute;
    top: 9px;
    right: 100%;
    border: 6px solid transparent;
    border-right-color: #fafafa;
  }
  .self {
      text-align: right;
  }
  .self .avatar {
    float: right;
    margin: 0 0 0 10px;
  }
  .self .text {
    background-color: #b2e281;
  }
  .self .text:before {
    right: inherit;
    left: 100%;
    border-right-color: transparent;
    border-left-color: #b2e281;
  }
}